Skip to content

Fix issue relating to R Markdown single-line LaTeX display equations#2

Closed
khughitt wants to merge 1 commit intovim-scripts:masterfrom
khughitt:master
Closed

Fix issue relating to R Markdown single-line LaTeX display equations#2
khughitt wants to merge 1 commit intovim-scripts:masterfrom
khughitt:master

Conversation

@khughitt
Copy link

Currently, single-line LaTeX equations like:

$$ x=0 $$

break all of the syntax highlighting below the line in R Markdown files.

This PR should fix the issue by allow both single-line and multiline equations as long as the line with the equation ends with a "$$".

@khughitt
Copy link
Author

Example to reproduce the issue:

Test
----
Some *Markdown* text **here**.

```{r}
x <- 'test'
print('before LaTeX block.')
```

$$latex$$

no more highlighting from here down...

```{r}
x <- 'including code blocks.'
print('after LaTeX block.')
```

@khughitt khughitt closed this Dec 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments